home *** CD-ROM | disk | FTP | other *** search
- ;void hide_cursor(top,bottom,left,right);
- ; unsigned short top,bottom,left,right;
-
- EXTRN _memory_model:byte
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _hide_cursor
- _hide_cursor proc near
- push bp ;
- mov bp,sp ;
- push di ;
- push si ;
- cmp _memory_model,0 ;near or far?
- jle begin ;jump if near
- inc bp ;else add 2 to BP
- inc bp ;
- begin: mov ax,16 ;function number
- mov dx,[bp+4] ;top
- mov di,[bp+6] ;bottom
- mov cx,[bp+8] ;left
- mov si,[bp+10] ;right
- int 33h ;
- pop si ;
- pop di ;
- pop bp ;
- cmp _memory_model,0 ;quit
- jle quit ;
- db 0CBh ;RET far
- quit: ret ;RET near
- _hide_cursor ENDP
- _TEXT ENDS
- END